package com.llxz.blog.article.entity;


import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.ArrayList;
import java.util.List;

@Data
@Document(collection = "collection")
public class Collection {
    @Id
    private String id;
    /**
     * 用户电话
     */
    private String phone;
    /**
     * 用户收藏文章的ArticleId
     */
    private List<String> collection = new ArrayList<>();
}
